fa83d4000530334c50dcd9a378c4a68c1c72a26a,community/dbms/src/main/java/org/neo4j/commandline/dbms/DumpCommand.java,DumpCommand,calculateArchive,#String#Path#,139

Before Change


        Path archive;
        if ( Files.exists( to ) && Files.isDirectory( to ) )
        {
            archive = to.resolve( database + ".dump" );
        }
        else
        {
            archive = to;
        }
        return archive;
    }

    private Closeable withLock( Path databaseDirectory ) throws CommandFailed

After Change



    private Path calculateArchive( String database, Path to )
    {
        return Files.isDirectory( to ) ? to.resolve( database + ".dump" ) : to;
    }

    private Closeable withLock( Path databaseDirectory ) throws CommandFailed